package com.gis507.mapreduce.splitday;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author leon
 * @ClassName Test.java
 * @createTime 2021年12月12日 15:48:00
 */
public class Test {


    public static void main(String[] args) throws ParseException {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        Date time = df.parse("2020-08-05");
        Calendar cal = Calendar.getInstance();
        cal.setTime(time);
        long tm = cal.getTimeInMillis();
        System.out.println(tm/1000);
        System.out.println(tm < 100);
        //1598371063
        //1596556800000
    }

}
